// 普通
// export default {
//   testCols: ["No", "name", "age", "city", "tel"],
//   testDatas: [
//     { No: 1, name: '张三', age: 24, city: '广州', tel: '13312345678' },
//     { No: 2, name: '李四', age: 25, city: '九江', tel: '18899998888' },
//     { No: 3, name: '王五', age: 26, city: '六盘水', tel: '13600001111' },
//     { No: 4, name: '赵二', age: 27, city: '菏泽', tel: '13145209420' },
//   ]
// }

// 可编辑
export default {
  // 表项（头）
  testCols: [ // 以键值存储表头，值可改变，键不变用以绑定数据
    { col: "name", txt: 'name', show: true, isEdit: true, isFixed: true },
    { col: "age", txt: 'age', show: true, isEdit: true, isFixed: false },
    { col: "city", txt: 'city', show: true, isEdit: true, isFixed: false },
    { col: "tel", txt: 'tel', show: true, isEdit: true, isFixed: false },
    { col: "operate", txt: 'operate', show: true, isEdit: true, isFixed: false }
  ],
  // 数据
  testDatas: [{
    name: { content: '张三', show: true, isEdit: false },
    age: { content: 24, show: true, isEdit: false },
    city: { content: '广州', show: true, isEdit: false },
    tel: { content: '13312345678', show: true, isEdit: false },
    operate: {
      content: [
        { name: "新增", type: "primary", size: "mini", click: "Add" },
        { name: "编辑", type: "danger", size: "mini", click: "Edit" },
        { name: "删除", type: "primary", size: "mini", click: "Delete" },
      ], show: true, isEdit: false
    },
  }, {
    name: { content: '李四', show: true, isEdit: false },
    age: { content: 25, show: true, isEdit: false },
    city: { content: '九江', show: true, isEdit: false },
    tel: { content: '18899998888', show: true, isEdit: false },
    operate: {
      content: [
        { name: "新增", type: "primary", size: "mini", click: "Add" },
        { name: "编辑", type: "danger", size: "mini", click: "Edit" },
        { name: "删除", type: "primary", size: "mini", click: "Delete" },
      ], show: true, isEdit: false
    },
  }
  ]
}
